Skip to content

Conversation

@CaptainUnknown
Copy link
Contributor

@CaptainUnknown CaptainUnknown commented Oct 28, 2024

Removed Redundant Return: Removed the redundant return statements in isLoggedIn() method for server-side setup. It now simply returns authResult.valid.

From:

if (!authResult.valid) {
  return false;
}
return true;

To:

return authResult.valid;

Fixed Typo: Corrected "know" to "now" in the text.


PR-Codex overview

This PR simplifies the authentication check in the AuthenticatedPage component by directly returning the validity of the authResult. It also corrects a typo in the documentation.

Detailed summary

  • Replaced the conditional check for authResult.valid with a direct return statement: return authResult.valid;
  • Fixed a typo in the documentation from "you know" to "you now".

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Fixed a redundant return statement in `isLoggedIn()` method from:
```
  if (!authResult.valid) {
    return false;
  }
  return true;
```

To simply:
```
return authResult.valid;
```

Signed-off-by: Captain Unknown <[email protected]>
@changeset-bot
Copy link

changeset-bot bot commented Oct 28, 2024

⚠️ No Changeset found

Latest commit: 7a4981b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 28, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@vercel
Copy link

vercel bot commented Oct 28, 2024

@CaptainUnknown is attempting to deploy a commit to the thirdweb Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added the Portal Involves changes to the Portal (docs) codebase. label Oct 28, 2024
@vercel
Copy link

vercel bot commented Oct 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2024 6:01pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2024 6:01pm

@jnsdls jnsdls merged commit aa0f397 into thirdweb-dev:main Oct 28, 2024
24 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Portal Involves changes to the Portal (docs) codebase.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants